package com.bolingcavalry.crm.serviceorder.service;/*
 * @Auther:Sadie
 * @Date:2025/4/24
 * @Description:
 * @VERSON:1.8
 */

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.base.ResponseResult;
import com.dto.ServiceOrderDTO;
import com.vo.ServiceOrderVO;

import java.util.List;

public interface ServiceOrderService {
    Boolean add(ServiceOrderDTO serviceOrderDTO);

    ResponseResult update(ServiceOrderDTO serviceOrderDTO);

    ServiceOrderVO getById(Long id);

    ServiceOrderVO getByorderNumber(String orderNumber);

    IPage<ServiceOrderVO> getByConditions(Integer pageNum,
                                          Integer pageSize,
                                          String companyName,
                                          String salesManagerName,
                                          String serviceOrderNumber,
                                          String startDate,
                                          String endDate, String status);

    boolean delete(Long id);

    boolean batchDelete(List<Long> ids);

    ResponseResult updateStatus(ServiceOrderDTO serviceOrderDTO) throws Exception;

    ResponseResult isbatchDelete(List<Long> ids);


}
